<template>
  <a-layout>
    <a-affix :offset-top="top">
      <a-layout-header class="header">
        <Header />
      </a-layout-header>
    </a-affix>
    <a-layout-content class="container">
      <router-view />
    </a-layout-content>
    <a-layout-footer class="footer">
      CopyRight © 2021-2020 正义OvO All Right Reserved
    </a-layout-footer>
  </a-layout>
</template>

<script setup>
import Header from "../components/commons/Header.vue";
import {ref} from "vue";

const top = ref(0)
</script>

<style scoped>
.header {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  margin: 0;
}

.container {
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - 138px);
}

.footer {
  position: relative;
  z-index: 1000;
}
</style>